const getters = {
  // 便捷访问: 借助全局的 getters 更方便的访问子模块中的数据
  // sidebar: state => state.app.sidebar,
  sidebar(state) {
    return state.app.sidebar
  },
  device: state => state.app.device,
  token: state => state.user.token,
  userInfo: state => state.user.userInfo,
  avatar: state => state.user.userInfo.staffPhoto, // 用户头像
  name: state => state.user.userInfo.username, // 用户名
  routes: state => state.user.routes,
  company: state => state.user.userInfo.company, // 公司名称
  departmentName: state => state.user.userInfo.departmentName // 部门名称
}
export default getters
